package com.pointmi.model;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.Email;

public class CustomerModel {
	
	@NotNull(message="Please provide email")
	@Email(message="Email is not in the correct format")
	private String email;

	@NotNull(message="Please provide first name")
	private String firstName;
	
	@NotNull(message="Please provide last name")
	private String lastname;
	
	@NotNull(message="Please provide contact address")
	private String address;
	
	@NotNull(message="Contact phone is required")
	@Size (min=10, message="Contact phone is not complete")
	private String phone;
	
	private String city;
	
	private String state;

	public String getFirstName()
	{
		return firstName;
	}
	
	public void setFirstName(String firstname)
	{
		this.firstName = firstname;
	}
	
	public String getemail()
	{
		return email;
	}
	
	public void setemail(String email)
	{
		this.email = email;
	}
	
	public String getlastname()
	{
		return lastname;
	}
	
	public void setlastname(String lastname)
	{
		this.lastname = lastname;
	}
	
	public String getaddress()
	{
		return address;
	}
	
	public void setaddress(String address)
	{
		this.address = address;
	}
	
	public String getphone()
	{
		return phone;
	}
	
	public void setphone(String phone)
	{
		this.phone = phone;
	}
	
	public String getcity()
	{
		return city;
	}
	
	public void setcity(String city)
	{
		this.city = city;
	}
	
	public String getstate()
	{
		return state;
	}
	
	public void setstate(String state)
	{
		this.state = state;
	}
}
